#ifndef SKIPRULESDELEGATE_H
#define SKIPRULESDELEGATE_H

#include <QStyledItemDelegate>

class SkipRulesDelegate : public QStyledItemDelegate
{
Q_OBJECT
public:
    explicit SkipRulesDelegate(QObject *parent = 0);
    void paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index);
    QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
    void setEditorData(QWidget *editor, const QModelIndex &index) const;
    void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
private slots:
    void commitAndCloseEditor();
    void commitAndCloseEditor(int);
};

#endif // SKIPRULESDELEGATE_H
